﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Obsidian.GameObjects;

namespace Obsidian.Components
{
    /// <summary>
    /// Behaviors are Components that can be enabled or disabled.
    /// </summary>
    public class Behavior : Component
    {
        /// <summary>
        /// Enabled Behaviors are Updated, disabled Behaviors are not.
        /// </summary>
        public bool Enabled { get; set; }

        public Behavior()
            : base("Behavior")
        {
            Enabled = true;
        }

        public Behavior(string name)
            : base(name)
        {
            Enabled = true;
        }
    }
}
